/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package data.email;

import java.io.Serializable;
import java.util.Objects;

/**
 * Třída reprezentující e-mailovou adresu.
 * @author Arcanis
 */
public class EmailAddress implements Serializable{
    private String address;
        

    public EmailAddress(String adddress) {
        this.address = adddress;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    @Override
    public boolean equals(Object obj) {
        if(obj instanceof EmailAddress){
            if(this.address.equals(((EmailAddress)obj).address)){
                return true;
            }
        }
        return false;
    }

    @Override
    public int hashCode() {
        int hash = 3;
        hash = 47 * hash + Objects.hashCode(this.address);
        return hash;
    }
    
    



    
}
